﻿using TripleA.Core.Interfaces.Entities;
using TripleA.StoryQ;
using TripleA.Core.Extensions.Registry;

namespace TripleA.Tests.Registry
{
    public class RegistryDomain : StoryQTestDomain<Context>
    {
        private string _path;
        private string _expectedValue;

        public void TheRegistryKey_(string path)
        {
            _path = path;
        }

        public void TheExpectedKeyValue_(string value)
        {
            _expectedValue = value;
        }

        public void TheRegistryKeyValueIsChecked()
        {
            SafeExecute(() => TripleA.RegistryKeyValueIs(_path, _expectedValue));
        }
    }
}